package com.qiezikaka.kaka.adapter;

import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.LinearLayout;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.makeramen.roundedimageview.RoundedImageView;
import com.qiezikaka.kaka.R;
import com.qiezikaka.kaka.bean.SiteSceneShowInfo;

import java.util.List;


/**
 *
 */
public class DialogBackAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public DialogBackAdapter(int layoutResId, List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper,String item) {

        Glide.with(mContext)
                .load(item)
//                .placeholder(R.drawable.placeholder_image) // 占位符图片
//                .error(R.drawable.error_image) // 错误时显示的图片
                .into((RoundedImageView)helper.getView(R.id.iv_dialog_img));

    }

//    @Override
//    public int getItemCount() {
//        return 2;
//    }
}


